<?php 

if(isset($search_result)&&$search_result){?>

<div class="list_entry">

<?php
	if( $search_result )
	{
		foreach( $search_result as $key => $value ){
?>	
		<div>
		<table>
		<tr>
			<td rowspan="2"><img style="width:80px; overflow: hidden;"src="<?php 
				/**店铺不需要图片 modify by bo**/
				if( $_GET['search_cate'] == "product" )
				//	echo $value['logo_url'];
			//	else 
					echo $value['pic_path'];?>" /></td>
			
<?php 
		if( $_GET['search_cate'] == "shop" || $_GET['search_cate'] == 'mall' )
		{
?>
			<td><span tag="item_name" class="list_item list_item_bot"><?php secho( $value['shop_name'] );?></span></td></tr>
		<?php 

			if( $_GET['search_cate'] == "shop" && $value['plat_id']<5 )
		{
		?>
			<tr><td><span class="list_item_from list_item_bot">掌柜: <?php secho( $value['nick']);?> &nbsp;&nbsp;&nbsp;来自: <?php secho( $value['plat_name'] );?>店铺</span>	
			</td></tr>
		<?php } ?>			
<?php
		} 
		else 
		{
?>
			<td><span tag="item_name" class="list_item"><?php secho( $value['product_name'] );?></span></td></tr>
			
		<?php 

			if( $value['plat_id']<5 )
			{
		?>
			<tr><td><span class="list_item_from list_item_bot">掌柜: <?php secho( $value['nick'] );?>&nbsp;&nbsp;&nbsp;来自: <?php secho( $value['plat_name'] );?>店铺</span></td></tr>			
		
		<?php } else{?>	
		
			<tr><td><span class="list_item_from list_item_bot">来自: <?php secho( $value['shop_name'] );?></span></td></tr>			
		
		<?php } ?>
					
			
<?php 
		}
?>
		</table>
  			<h2>宝贝真实度</h2><h3><?php echo $value['reality']?></h3>
  			<h2>性价比</h2><h3><?php echo $value['rate']?></h3>
  			<h2>服务态度</h2><h3><?php echo $value['service']?></h3>
  			<h2>发货速度</h2><h3><?php echo $value['velocity']?></h3>
			<a id="<?php echo $value['id']?>" style="cursor: pointer;" href="###">加入评单</a>
		
			</div>
		
<?php
		}
	}	
?>
</div>
<div class="pagebox">
<?php 	
		echo $pageObj->getBar();
?>	
</div>	
                    		
<?php }else{?>
<div class="list_entry1">

<?php			
		if( $_GET['search_cate'] == "shop" || $_GET['search_cate'] == 'mall' )
		{		
			echo '没有搜到店铺或商城！请重新搜索。或 <a href="'.edp_href_link(PAGENAME_ADD_SHOP).'" >点击添加店铺</a>。';
			
		}else{
			echo '没有搜到商品！请重新搜索。或添加商品。 <a href="http://www.huakaili.com/help/?subpage=102" >查看帮助</a>';
			
		}	
?>		
</div>	
<?php } ?>